“Round Window WDEF” is a window definition function that makes it possible for you to use round windows on your Macintosh.
“Round Window WDEF” is free-ware, you may use it in your applications if due credit is paid to the programmer, i.e. by a line like “Round windows by Mattias Ellert” in your “About…” box.
To use the “Round Window WDEF”:
• Copy the ‘WDEF’ resource (ID 32) from this application to your application’s resource file using ResEdit or some other resource manipulating tool.
• In calls to NewWindow or NewCWindow and in your ‘WIND’ resources, be sure to add 512 to the wDefProcID of the corresponding square window.
• If Color QuickDraw is present you can use a window colour table (‘wctb’ resource). The entries have the same meaning as for square windows. With the Appearance Manager only the wContentColor entry is used.
If you have questions or encounter any problems, please don’t hesitate to
contact the programmer.
Mattias Ellert
Botvidsgatan 4 A, 2 tr
753 29 UPPSALA
SWEDEN
mattias.ellert@tsl.uu.se
http://www.tsl.uu.se/~ellert/
Version history:
18 Nov 1995:
Release of Round Window 1.0
9 Jan 1999:
Release of Round Window 2.0
Changes include:
• Native PowerPC code. The WDEF now comes in three flavours: 68k, PPC and FAT. The FAT WDEF is a so called ‘safe resource’ that runs also without the Mixed Mode manager.
• Support for Appearance manager 1.0 to 1.0.2. The WDEF works like the standard WDEF for square windows. If global Platinum appearance is turned on or the Application has been registered as an Appearance client, the Platinum appearance is used, otherwise the system 7 appearance is used. If the WDEF is used under system 6 the system 6 colour scheme is used.
• Window titles are written using the correct font under system 8 (version 1.0 worked correctly with system 7). Window titles are now drawn using WriteString instead of WriteChar, so the WDEF should work correctly also on systems with contextual or multi-byte encodings.
• Improved colour handling: The WDEF no longer assumes that the entries in the window colour table are in order. The condition for drawing the window in black and white has been revised so that it has the same behaviour as the square windows. Now supports colours also under system 6.
• Round Window now supports Zoom and Grow. And with the Appearance manager there is a collapse box.
• The WDEF now returns wInContent if a Mouse Down event occurs in the window frame if the computer runs system 7 or later. It still returns wNoHit under system 6. This is the same behaviour as for square windows.
• More information is stored between calls to the WDEF than before. This makes the code a bit faster, but it is still slow on old machines…